home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5211 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: er5.rutgers.edu!not-for-mail
  2. From: wempa@eden.rutgers.edu (Force Of Nature)
  3. Newsgroups: comp.lang.c
  4. Subject: Another Character String Question
  5. Date: 8 Feb 1996 13:35:48 -0500
  6. Organization: Rutgers University
  7. Message-ID: <4fdfq4$mis@er5.rutgers.edu>
  8. NNTP-Posting-Host: er5.rutgers.edu
  9.  
  10. Thanks to all who responded to my Character -> Integer Question.  The function
  11. atoi() worked beautifully.  I have another question.  I need to take a pointer
  12. to a string of characters and add ONLY 1 additional character to it.  I know
  13. that I can simply go down until I find the '\0' and add the extra character
  14. followed by the '\0'.  Is there an easier way to do this ??  I tried simply
  15. doing:
  16.                         *temp = *text + ')';
  17.  
  18. This did not work.  Is there some other simple way to add characters onto the
  19. end of a string ???
  20.  
  21. -- 
  22. --------------------------------------------------------------------
  23. Kristofer Wempa                             
  24. wempa@eden.rutgers.edu               http://remus.rutgers.edu/~wempa   
  25. -------------------Be Young, Have Fun, Skydive !--------------------
  26.